package com.wn.service.impl;

import com.wn.bean.Building;
import com.wn.mapper.BuildingMapper;
import com.wn.service.BuildingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yellow Docter
 * @date 2022 -07-15
 * @desc
 */
@Service
public class BuildingServiceImpl implements BuildingService {

    @Autowired
    private BuildingMapper buildingMapper;

    @Override
    public List<Building> list() {
        return buildingMapper.findAll();
    }
}
